package vo

type InstrumentReq struct {
	Name         string  `json:"name" binding:"required"`
	Img          string  `json:"img" binding:"required"`
	Describe     string  `json:"describe" binding:"required"`
	Specials     string  `json:"specials" binding:"required"`
	Price        float64 `json:"price" binding:"required"`
	Unit         string  `json:"unit" binding:"required"`
	Store        uint    `json:"store" binding:"required"`
	CategoryID   uint    `json:"category_id" binding:"required"`
	CategoryName string  `json:"category_name" binding:"required"`
}

type ListInstrumentReq struct {
	PageNum    int    `json:"page_num"`
	PageSize   int    `json:"page_size"`
	Name       string `json:"name"`
	CategoryId uint   `json:"category_id"`
}

type ListInstrumentResp struct {
	ID           uint    `json:"id"`
	Name         string  `json:"name"`
	Img          string  `json:"img"`
	Describe     string  `json:"describe"`
	Specials     string  `json:"specials"`
	Price        float64 `json:"price"`
	Unit         string  `json:"unit"`
	Store        uint    `json:"store"`
	CategoryID   uint    `json:"category_id"`
	CategoryName string  `json:"category_name"`
	CreatedAt    string  `json:"created_at"`
}
